﻿@model SDE_FIC.Models.Funcionario

@{
    ViewBag.Title = "Editar";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Professor</legend>
<table style="width:100%">
    <tr>
        <td style="vertical-align:top">

        <div class="editor-field">
            @Html.HiddenFor(model => model.IdFuncionario)
            @Html.ValidationMessageFor(model => model.IdFuncionario)
        </div>

        <div class="editor-label">
            <b>Nome Completo</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NomeCompleto)
            @Html.ValidationMessageFor(model => model.NomeCompleto)
        </div>

        <div class="editor-label">
            <b>E-mail</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            <b>R.G.</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RG)
            @Html.ValidationMessageFor(model => model.RG)
        </div>

        <div class="editor-label">
            <b>C.P.F.</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CPF)
            @Html.ValidationMessageFor(model => model.CPF)
        </div>
        <div class="editor-label">
            <b>Telefone Celular</b>
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.TelefoneCelular)
            @Html.ValidationMessageFor(model => model.TelefoneCelular)
        </div>

        <div class="editor-label">
            <b>Telefone Residencial</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TelefoneResidencial)
            @Html.ValidationMessageFor(model => model.TelefoneResidencial)
        </div>

        <div class="editor-label">
            <b>Endereço</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Logradouro)
            @Html.ValidationMessageFor(model => model.Logradouro)
        </div>

        <div class="editor-label">
            <b>Número</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Numero)
            @Html.ValidationMessageFor(model => model.Numero)
        </div>
        </td>
        <td style="vertical-align:top">
        <div class="editor-label">
            <b>Bairro</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Bairro)
            @Html.ValidationMessageFor(model => model.Bairro)
        </div>

        <div class="editor-label">
            <b>Cidade</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cidade)
            @Html.ValidationMessageFor(model => model.Cidade)
        </div>

        <div class="editor-label">
            <b>Estado</b>
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Estado, new SelectList(
                  new List<Object>{ 
                                    new { value =  "AC" , text =  "AC"  },
                                    new { value =  "AL" , text =  "AL" },
                                    new { value =  "AP" , text =  "AP"  },
                                    new { value =  "AM" , text =  "AM"  },
                                    new { value =  "BA" , text =  "BA"  },
                                    new { value =  "CE" , text =  "CE"  },
                                    new { value =  "DF" , text =  "DF"  },
                                    new { value =  "ES" , text =  "ES"  },
                                    new { value =  "GO" , text =  "GO"  },
                                    new { value =  "MA" , text =  "MA"  },
                                    new { value =  "MT" , text =  "MT"  },
                                    new { value =  "MS" , text =  "MS"  },
                                    new { value =  "MG" , text =  "MG"  },
                                    new { value =  "PA" , text =  "PA"  },
                                    new { value =  "PB" , text =  "PB"  },
                                    new { value =  "PR" , text =  "PR"  },
                                    new { value =  "PE" , text =  "PE"  },
                                    new { value =  "PI" , text =  "PI"  },
                                    new { value =  "RJ" , text =  "RJ"  },
                                    new { value =  "RN" , text =  "RN"  },
                                    new { value =  "RS" , text =  "RS"  },
                                    new { value =  "RO" , text =  "RO"  },
                                    new { value =  "RR" , text =  "RR"  },
                                    new { value =  "SC" , text =  "SC"  },
                                    new { value =  "SP" , text =  "SP"  },
                                    new { value =  "SE" , text =  "SE"  },
                                    new { value =  "TO" , text =  "TO"  },
                                   
                                  },"value","text"))
            @Html.ValidationMessageFor(model => model.Estado)
        </div>

        <div class="editor-label">
            <b>CEP</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CEP)
            @Html.ValidationMessageFor(model => model.CEP)
        </div>
        <div class="editor-label">
            <b>Usuário</b>
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => Model.Usuario.IdUsuario, ViewBag.usuario_idusuario as SelectList)
            @Html.ValidationMessageFor(model => model.Usuario.IdUsuario)
        </div>

        <div class="editor-label">
            <b>Especialidade</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Especialidade)
            @Html.ValidationMessageFor(model => model.Especialidade)
        </div>

        <div class="editor-label">
            <b>Observação</b>
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Observacao, new { rows="4"})
            @Html.ValidationMessageFor(model => model.Observacao)
        </div>

        <p>
            <input type="submit" class="btn btn-sucsess " value="Salvar" />
        </p>
        </td>

    </tr>

</table>
    </fieldset>
}

<div>
     @Html.ActionLink("Voltar para Listagem", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
